import request from '@/utils/request'

// 提供首页相关APi函数
// 获取品牌 @param{Integer} limit -- 品牌个数
//  @return PRomise
export const findBrand = limit => request({
  url: '/home/brand',
  params: {
    limit
  }
})

// 获取轮播图数据
export const findBanner = () => request({
  url: '/home/banner'
})

// 获取新鲜好物
export const findNew = () => request({
  url: '/home/new'
})

// 获取人气推荐
export const findHot = () => request({
  url: '/home/hot'
})

// 获取产品区块
export const findGoods = () => request({
  url: '/home/goods'
})

// 获取最新专题
export const findSpecial = () => request({
  url: '/home/special'
})
// 获取全部商品分类
export const findAllProduct = () => request({
  url: '/home/category/head'
})
